﻿package  
{
	import flash.display.MovieClip;
	import flash.events.Event;
	import flash.text.TextField;
	import flash.text.TextFormat;
	import Levels.Level;
	import ScreensManager.ProjectScreen.IntroductionScreen
	import ScreensManager.ProjectScreen.Screens
	import ScreensManager.ScreenManager

	
	/**
	 * ...
	 * @author Thiago Gomes da Silva
	 */
	public class Main extends MovieClip 
	{
		private static var _Instance	:Main;
		private var level1:Level;
		
		public function Main()
		{
			_Instance = this;
			
			ScreenManager.setCurrentScreen(Screens.INTRODUCTION_SCREEN);
			
			this.addEventListener(Event.ENTER_FRAME, update, false, 0, true)
			ScreenManager.main = this;
		}
		
		public static function getInstance():Main
		{
			return _Instance;
		}
		
		public function update(e:Event):void
		{
			ScreenManager.getCurrentScreen().update();
		}
	}

} 